package com.ranchuanyin.schoolcat.service;

import com.ranchuanyin.schoolcat.dto.UpdateEmailDTO;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthenticationService extends UserDetailsService {
    String sendValidateEmail(String email, String sessionId, boolean hasAccount);

    String sendValidateEmail(String email, String sessionId, String key);


    String validateAndRegisterUser(String username, String password, String email, String code, String sessionId);

    String validateOnly(String email, String code, String sessionId, String redisKey);

    boolean resetPassword(String password, String email);

    boolean updateEmail(UpdateEmailDTO dto);
}
